home *** CD-ROM | disk | FTP | other *** search
/ Amiga News 95 / Amiga News 95.iso / dpat / dpat62 / chipmemfirst / cmf_strings.asm < prev    next >
Assembly Source File  |  1994-04-30  |  4KB  |  179 lines

  1.     IFND CMF_STRINGS_I
  2. CMF_STRINGS_I    SET    1
  3.  
  4.  
  5. ;-----------------------------------------------------------------------------
  6.  
  7.  
  8. * This file was created automatically by CatComp.
  9. * Do NOT edit by hand!
  10. *
  11.  
  12.  
  13.     IFND EXEC_TYPES_I
  14.     INCLUDE 'exec/types.i'
  15.     ENDC
  16.  
  17.     IFD CATCOMP_ARRAY
  18. CATCOMP_NUMBERS SET 1
  19. CATCOMP_STRINGS SET 1
  20.     ENDC
  21.  
  22.     IFD CATCOMP_CODE
  23. CATCOMP_BLOCK SET 1
  24.     ENDC
  25.  
  26.  
  27. ;-----------------------------------------------------------------------------
  28.  
  29.  
  30.     IFD CATCOMP_NUMBERS
  31.  
  32. INTUITION_ERROR EQU 0
  33. DOS_ERROR EQU 1
  34. ICON_ERROR EQU 2
  35. MSG_ALREADY EQU 3
  36. MSG_NOMEM EQU 4
  37. MSG_INSTALLED EQU 5
  38. MSG_NOINSTALLED EQU 6
  39. MSG_REMOVED EQU 7
  40. MSG_NOFASTRAM EQU 8
  41. MSG_INVALIDE EQU 9
  42. MSG_INFERIOR EQU 10
  43.  
  44.     ENDC ; CATCOMP_NUMBERS
  45.  
  46.  
  47. ;-----------------------------------------------------------------------------
  48.  
  49.  
  50.     IFD CATCOMP_STRINGS
  51.  
  52. INTUITION_ERROR_STR: DC.B 'Can',39,'t find intuition.library.',10,10,$00
  53. DOS_ERROR_STR: DC.B 'Can',39,'t find dos.library.',10,10,$00
  54. ICON_ERROR_STR: DC.B 'Can',39,'t find icon.library.',10,10,$00
  55. MSG_ALREADY_STR: DC.B 'ChipMemFist is already running.',10,10,$00
  56. MSG_NOMEM_STR: DC.B 'No memory for romtag.',10,10,$00
  57. MSG_INSTALLED_STR: DC.B 'ChipMemFirst is ready, reboot please.',10,10,$00
  58. MSG_NOINSTALLED_STR: DC.B 'ChipMemfirst is not installed.',10,10,$00
  59. MSG_REMOVED_STR: DC.B 'ChipMemFirst removed, reboot please.',10,10,$00
  60. MSG_NOFASTRAM_STR: DC.B 'Sorry, no fast mem.',10,10,$00
  61. MSG_INVALIDE_STR: DC.B 'Your prioritie is not a valide decimal number.',10,10,' ',$00
  62. MSG_INFERIOR_STR: DC.B 'Your priorite is lower than fast ram prioritie.',10,10,' ',$00
  63.  
  64.     ENDC ; CATCOMP_STRINGS
  65.  
  66.  
  67. ;-----------------------------------------------------------------------------
  68.  
  69.  
  70.     IFD CATCOMP_ARRAY
  71.  
  72.    STRUCTURE CatCompArrayType,0
  73.     LONG cca_ID
  74.     APTR cca_Str
  75.    LABEL CatCompArrayType_SIZEOF
  76.  
  77.     CNOP 0,4
  78.  
  79. CatCompArray:
  80. AS0:    DC.L INTUITION_ERROR,INTUITION_ERROR_STR
  81. AS1:    DC.L DOS_ERROR,DOS_ERROR_STR
  82. AS2:    DC.L ICON_ERROR,ICON_ERROR_STR
  83. AS3:    DC.L MSG_ALREADY,MSG_ALREADY_STR
  84. AS4:    DC.L MSG_NOMEM,MSG_NOMEM_STR
  85. AS5:    DC.L MSG_INSTALLED,MSG_INSTALLED_STR
  86. AS6:    DC.L MSG_NOINSTALLED,MSG_NOINSTALLED_STR
  87. AS7:    DC.L MSG_REMOVED,MSG_REMOVED_STR
  88. AS8:    DC.L MSG_NOFASTRAM,MSG_NOFASTRAM_STR
  89. AS9:    DC.L MSG_INVALIDE,MSG_INVALIDE_STR
  90. AS10:    DC.L MSG_INFERIOR,MSG_INFERIOR_STR
  91.  
  92.     ENDC ; CATCOMP_ARRAY
  93.  
  94.  
  95. ;-----------------------------------------------------------------------------
  96.  
  97.  
  98.     IFD CATCOMP_BLOCK
  99.  
  100. CatCompBlock:
  101.     DC.L $0
  102.     DC.W $20
  103.     DC.B 'Can',39,'t find intuition.library.',10,10,$00
  104.     DC.L $1
  105.     DC.W $1A
  106.     DC.B 'Can',39,'t find dos.library.',10,10,$00
  107.     DC.L $2
  108.     DC.W $1C
  109.     DC.B 'Can',39,'t find icon.library.',10,10,$00,$00
  110.     DC.L $3
  111.     DC.W $22
  112.     DC.B 'ChipMemFist is already running.',10,10,$00
  113.     DC.L $4
  114.     DC.W $18
  115.     DC.B 'No memory for romtag.',10,10,$00
  116.     DC.L $5
  117.     DC.W $28
  118.     DC.B 'ChipMemFirst is ready, reboot please.',10,10,$00
  119.     DC.L $6
  120.     DC.W $22
  121.     DC.B 'ChipMemfirst is not installed.',10,10,$00,$00
  122.     DC.L $7
  123.     DC.W $28
  124.     DC.B 'ChipMemFirst removed, reboot please.',10,10,$00,$00
  125.     DC.L $8
  126.     DC.W $16
  127.     DC.B 'Sorry, no fast mem.',10,10,$00
  128.     DC.L $9
  129.     DC.W $32
  130.     DC.B 'Your prioritie is not a valide decimal number.',10,10,' ',$00
  131.     DC.L $A
  132.     DC.W $34
  133.     DC.B 'Your priorite is lower than fast ram prioritie.',10,10,' ',$00,$00
  134.  
  135.     ENDC ; CATCOMP_BLOCK
  136.  
  137.  
  138. ;-----------------------------------------------------------------------------
  139.  
  140.  
  141.    STRUCTURE LocaleInfo,0
  142.     APTR li_LocaleBase
  143.     APTR li_Catalog
  144.    LABEL LocaleInfo_SIZEOF
  145.  
  146.     IFD CATCOMP_CODE
  147.  
  148.     XREF    _LVOGetCatalogStr
  149.     XDEF    _GetString
  150.     XDEF    GetString
  151. GetString:
  152. _GetString:
  153.     lea    CatCompBlock(pc),a1
  154.     bra.s    2$
  155. 1$:    move.w    (a1)+,d1
  156.     add.w    d1,a1
  157. 2$:    cmp.l    (a1)+,d0
  158.     bne.s    1$
  159.     addq.l    #2,a1
  160.     move.l    (a0)+,d1
  161.     bne.s    3$
  162.     move.l    a1,d0
  163.     rts
  164. 3$:    move.l    a6,-(sp)
  165.     move.l    d1,a6
  166.     move.l    (a0),a0
  167.     jsr    _LVOGetCatalogStr(a6)
  168.     move.l    (sp)+,a6
  169.     rts
  170.     END
  171.  
  172.     ENDC ; CATCOMP_CODE
  173.  
  174.  
  175. ;-----------------------------------------------------------------------------
  176.  
  177.  
  178.     ENDC ; CMF_STRINGS_I
  179.